﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Ranji_2017_Umlite
{
    public partial class Welcome : Form
    {
        public static Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;
        public Welcome()
        {
            InitializeComponent();
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // 将画面放在正中间
            this.Left = rect.Width/2-this.Width/2;
            this.Top = rect.Height/2-this.Height/2;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            this.Hide();
            MainView mv = new MainView();
            mv.Left = 0;
            mv.Top = 0;
            mv.Width = rect.Width;
            mv.Height = rect.Height;
            mv.Show();
        }
    }
}
